package com.sc.nft.admin.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class AddHotSaleActivityRequest {
    @ApiModelProperty("活动id")
    @NotNull(message = "活动id不能为空")
    private Long activityId;

    @ApiModelProperty("热卖图片")
    @NotBlank(message = "热卖图片不能为空")
    private String hotSaleImage;

    @ApiModelProperty("热卖标题")
    @NotBlank(message = "热卖标题不能为空")
    private String hotSaleTitle;

    @ApiModelProperty(value = "排序")
    @NotNull(message = "排序不能为空")
    @Range(min = 0, max = 99999999, message = "排序范围为0-99999999")
    private Integer sort;
}
